package cn.iocoder.an.module.mold.controller.admin.category.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 模具类型新增/修改 Request VO")
@Data
public class CategorySaveReqVO {

    @Schema(description = "类型id", requiredMode = Schema.RequiredMode.REQUIRED, example = "21938")
    private Long id;

    @Schema(description = "类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "类型名称不能为空")
    private String name;

    @Schema(description = "类型编码")
    private String code;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "描述", example = "你猜")
    private String description;

    @Schema(description = "父id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1982")
    @NotNull(message = "父id不能为空")
    private Long parentId;

}